package com.movitech.mobile.ddzy.modules.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.movitech.mobile.cz.base.util.UserUtils;

@RestController
public class ComputeController {

    private final Logger logger = Logger.getLogger(getClass());

    @RequestMapping(value = "/temp" ,method = RequestMethod.GET)
    public String temp(HttpServletRequest httpServletRequest) {
//        HttpSession session = httpServletRequest.getSession();
//        System.out.println(session.getId());
//        System.out.println((String)session.getAttribute("userJson"));
        System.out.println(UserUtils.getCurrentUserButton());
//        System.out.println(UserUtils.getCurrentUserMenu());
        return "temp";
    }

}